package com.xxadmin.usercenter.vo.request;

import com.xxadmin.common.validate.ValidGroup1;
import com.xxadmin.common.validate.ValidGroup2;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class RoleDetailVO {


    @NotBlank(message = "权限名称不能为空",groups = {ValidGroup1.class, ValidGroup2.class})
    private String roleName;

    @NotBlank(message = "所属渠道不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String channelCode;

    @NotBlank(message = "权限说明不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String roleDesc;

    @NotNull(message = "权限 ID 不能为空",groups = {ValidGroup2.class})
    private Integer id;
}
